package top.infopub.mgr.bpa.service.impl;

import java.math.BigDecimal;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import top.infopub.generic.GenericDao;
import top.infopub.generic.GenericServiceImpl;
import top.infopub.mgr.bpa.dao.DeviceSureDetailDao;
import top.infopub.model.bpa.DeviceSureDetail;
import top.infopub.mgr.bpa.service.DeviceSureDetailService;

@Service
public class DeviceSureDetailServiceImpl extends GenericServiceImpl<DeviceSureDetail, String> implements
		DeviceSureDetailService {

	@Autowired
	private DeviceSureDetailDao deviceSureDetailDao;
	
	@Override
	public GenericDao<DeviceSureDetail, String> getDao() {
		return deviceSureDetailDao;
	}

    @Override
    public BigDecimal selectAddupAmountBySubNameAndRefId(String subName, String refId) {
        return deviceSureDetailDao.selectAddupAmountBySubNameAndRefId(subName,refId);
    }

}